# Contributor: Jason Swank <jswank@scalene.net>
# Maintainer: Jason Swank <jswank@scalene.net>
pkgname=openvi
pkgver=7.4.27
pkgrel=0
pkgdesc="OpenVi is a fork of the vi / ex editor included with OpenBSD"
url="https://github.com/johnsonjh/OpenVi"
arch="all"
license="BSD-3-Clause"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/johnsonjh/OpenVi/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/OpenVi-$pkgver"
options="!check" # no tests

build() {
	make
}

package() {
	make BINPREFIX="o" DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="
b18dbb05b530342bf45896bd66c6dbe5f52e7dc9a49c16ac034b0c0e78dfd1de415a57ffae6f2ce5442bf867e332eaa8a47849bf6dad74055c0bd7d6ce53c3e7  openvi-7.4.27.tar.gz
"
